{% extends 'home/public/simplebase.html' %}
{% block title %}会员登录{% endblock %}
{% block container %}
<div class="login-main-wrap">
    <div class="login-main wrapper">
        <div class="login-box">
            <form action="" method="post" class="layui-form">
            {% csrf_token %}
            <div class="box-hd">
                <span class="tit">用户登录</span>
                <a href="{% url 'register' %}">注册新账号</a>
            </div>
            <label class="txtin-box">
                <span class="ico user"></span>
                <input class="txtin" type="text" id="username" name="username" lay-verify="required|username" autocomplete="on" placeholder="请输入用户名" />
            </label>
            <label class="txtin-box">
                <span class="ico pwd"></span>
                <input class="txtin" type="password" id="password" name="password"  lay-verify="required|password"  placeholder="输入密码" />
            </label>
            <div class="clearfix tool">
                <input type="checkbox" name="autologin" lay-skin="primary" title="自动登录">
                <a class="find" href="{% url 'forgotpwd' %}">忘记密码？</a>
            </div>
            <input type="hidden" value="{% url 'login_check' %}" id="path">

            <input class="tj" type="button" value="登&ensp;录" lay-submit="" lay-filter="subform" />
        </form>
        </div>
    </div>
</div>


{% endblock %}

{% block setjs %}
<script src="/static/home/js/logincheck.js"></script>
{% endblock %}